﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WISD.CarFriend.Web.UserControls
{
    public partial class Top : System.Web.UI.UserControl
    {
        public string userName = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["UserName"] != null && Session["UserID"] != null)
            {
                userName = " " + Session["UserName"].ToString() + " ";
                userID.NavigateUrl = "../Index.aspx";
                userID.Text = userName;
            }
        }

        protected void hlkExit(object sender, EventArgs e)
        {
            Session["UserName"] = null;
            Session["UserID"] = null;
        }


        //protected void lbtnExit_Click(object sender, EventArgs e)
        //{
        //    Session["UserName"] = null;
        //    Session["UserID"] = null;
        //    Response.Redirect("../../Index.aspx");
        //}


    }
}